package com.tangly.module.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * created by yehao on 2018/7/27.
 */
@Table(name = "loan_rate")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LoanRateEntity {

/*            `id` bigint(20) NOT NULL,
  `type` varchar(45) NOT NULL COMMENT '贷款类型',
            `rate` float NOT NULL COMMENT '贷款利率',*/

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @ApiModelProperty(value = "贷款类型")
    private String type;

    @ApiModelProperty(value = "贷款利率")
    private float rate;



}
